//
//  ASHomeApi.h
//  AvatarShow
//
//  Created by xunruiIOS on 2021/4/27.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ASHomeApi : NSObject

/**
 获取服务端时间
 */
+(void)updateNetTimeCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 获取全局推荐位
 */
+(void)loadCommendCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 获取首页头部数据
 */
+(void)loadHomeBannerCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 获取首页数据
 */
+(void)loadHomeHomeListPage:(NSInteger)page Completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 加载热门搜索数据
 */
+(void)loadHotSearchDataCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  搜索数据
 type:0、其它，1、头像，2、表情，
*/
+(void)loadSearchData:(NSString *)searchContent page:(NSInteger)page type:(NSString *)type lbfl:(NSString * _Nullable)lbfl completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;


/**
  斗图表情分类列表
*/
+(void)loadDoutuDataCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/// 百度人像动漫
/// @param image 图片
/// @param completion 成功
/// @param failure 失败
+(void)baiduAnimeImageWithImage:(UIImage *)image loadingStr:(NSString *__nullable)loadingStr Completion:(void (^)(UIImage *  _Nonnull image))completion failure:(void (^)(NSString * _Nonnull errorStr))failure;

/**
  加载头像分类首页数据
*/
+(void)loadAvatarClassDataCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  加载头像分类列表数据
*/
+(void)loadAvatarList:(NSString *)subID page:(NSInteger)page Completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  加载斗图表情列表数据
*/
+(void)loadDoutuList:(NSString *_Nullable)subID page:(NSInteger)page isFeatured:(NSString *_Nullable)isFeatured Completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  加载文案-分类数据
*/
+(void)loadTextTagDataCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  加载文案列表数据
*/
+(void)loadTextListData:(NSInteger)page classifyId:(NSString *)classifyId Completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  加载文案搜索列表数据
*/
+(void)loadTextSearchListData:(NSInteger)page wordStr:(NSString *)wordStr Completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
  加载套图详情数据
*/
+(void)loadOneGroupData:(NSString *)subID Completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 加载全局公共数据
*/
+(void)loadOpinionDataCompletion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 下载统计
*/
+(void)addDownLoadTongji:(NSString *)subID completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 收藏统计
*/
+(void)addCollectionTongji:(NSString *)subID is_cancel:(NSString *)is_cancel completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;

/**
 浏览统计
*/
+(void)addSeeTongji:(NSString *)subID completion:(void (^)(id  _Nonnull result))completion failure:(void (^)(NSError * _Nonnull error))failure;
@end

NS_ASSUME_NONNULL_END
